#include "logger.h"
#include <QCoreApplication>
#include "easylogging++.h"

//Logger* Logger::m_instance = new Logger();
Logger::Logger()
{
    QString strPath = QCoreApplication::applicationDirPath();// + "/cfg/config.conf";

    strPath.append("/cfg/config.conf");
    el::Configurations conf(strPath.toStdString());
    el::Loggers::reconfigureAllLoggers(conf);
}

Logger::~Logger()
{
    el::Helpers::uninstallPreRollOutCallback();
}
